package elven.d.webservice.service.client;

import java.net.MalformedURLException;
import java.net.URL;

import org.codehaus.xfire.client.Client;

public class WebServiceClient {

	public static void main(String[] args) {

		try {
			Client client = new Client(new URL("http://localhost:8080/elven/webservices/HelloWorld?wsdl"));
			Object[] results = client.invoke("sayHi", new Object[] { "Firends" });
			System.out.println(results[0]);
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
}
